package com.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.pojo.ums.Ums_Member;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface Ums_Member_Mapper extends BaseMapper<Ums_Member> {
@Select("select * from ums_member where username=#{loginname} and password=#{password} || mobile=#{loginname} and password=#{password} || email=#{loginname} and password=#{password}")
    public Ums_Member getUsersByParam(@Param("loginname") String loginname, @Param("password") String password);//根据用户名和密码、手机号密码、邮箱密码来登录
}
